package cn.v2tila.rsosa.student.jpa;

import cn.v2tila.rsosa.student.entity.ZpxxEntity;
import org.aspectj.apache.bcel.classfile.Code;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Collection;
import java.util.List;

/**
 * @author v2tila on 14:24 2019/3/15
 */

public interface ZpxxJPA extends JpaRepository<ZpxxEntity, Integer>, JpaSpecificationExecutor<ZpxxEntity> {
    List<ZpxxEntity> findByStudentName(String studentName);

//    Page<ZpxxEntity> findByStudentName(String studentName, Pageable pageable);

    Page<ZpxxEntity> findByCollegeNameInAndCode(Collection<String> collegeName, Integer code, Pageable pageable);

    Page<ZpxxEntity> findByAssoNameContainingAndCollegeNameInAndCode(String assoName , Collection<String> collegeName, Integer code,Pageable pageable);

}
